﻿package {	import flash.display.*;	import flash.events.*;	import com.greensock.*;	import com.greensock.easing.*; 	public class ScrollBox extends MovieClip	{				public function ScrollBox():void		{			sb.addEventListener(ScrollBarEvent.VALUE_CHANGED, sbChange);		}				private function sbChange(e:ScrollBarEvent):void		{			/*Tweener.addTween(content, {y:(-e.scrollPercent*(content.height-masker.height)),							   time:1});*/			//tweens mc's alpha property to 0.5 and x property to 120 from wherever they are currently over the course of 1.5 seconds.			TweenNano.to(content, 1, {y:(-e.scrollPercent*(content.height-masker.height))});			}	}}